<ui:component xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:richx="http://richfaces.org/richx">

	<rich:modalPanel id="selectPartyPanel" minWidth="810" minHeight="580" resizeable="false" zindex="15000">
		<f:facet name="header">
			<h:outputText value="Seleccionar persona"/>
		</f:facet>
		
		<f:facet name="controls">
			<h:panelGroup>
				<h:graphicImage id="hideSelectPartyPanel" value="/img/close.png"
					styleClass="hidelink" />
				<rich:componentControl for="selectPartyPanel"
					attachTo="hideSelectPartyPanel" operation="hide" event="onclick" />
			</h:panelGroup>
		</f:facet>

		<div style="width:100%;height:495px;overflow:auto">
			<ui:include src="/admin/person.xhtml">
				<ui:param name="showTitle" value="false" />
				<ui:param name="numElements" value="4" />
				<ui:param name="selecting" value="true" />
				<ui:param name="selectionPanelName" value="selectPartyPanel" />
			</ui:include>
		</div>
		
		<br />
		
		<div align="center">
			<button
				onclick="#{rich:component('selectPartyPanel')}.hide();">
				#{messages['button.close']}
			</button>
		</div>
	</rich:modalPanel>

</ui:component>
